<!DOCTYPE html>
{% extends "users/base.html" %}
{% load common_extras %}
{% block title %}
    {{ new_class|capfirst }}
{% endblock %}
{% block header %}
    {% include "function/header.html" %}
{% endblock %}
{% block main %}
    {% include "classify/class.html" %}
    {% if records %}
        <a class="main">
            {% for record in records %}
                <b class="ac">
                    <a href="/fun/record/{{ record.id }}">
                        <div class="left">
                            <img src="/static/media/{{ record.picture }}" alt="图片走丢了">
                        </div>
                        <div class="right">
                            <h4>{{ forloop.counter }}、{{ record.title }}</h4>
                            <p class="desc">{{ record.description }}</p>
                            <p class="time">
                                发布时间：{{ record.create_time|time_since }}
                            </p>
                        </div>
                    </a>
                </b>
                <h2>&emsp;</h2>
                {% if forloop.last %}
                    <div class="bottom">
                        <<<<<----->>>>>
                    </div>
                {% endif %}
            {% endfor %}
        </a>
    {% else %}
        <div class="bottom-info">
            >>>>>暂无数据~<<<<<
        </div>
    {% endif %}
{% endblock %}